﻿	<table class="table table-bordered">
	<thead>
		<tr>
			<th style="width:10%;">Nº</th>
			<th>Permissão</th>
			<th>Controlador</th>
			<th>Ação</th>
			<th>Editar</th>
			<th>Apagar</th>
		</tr>
	</thead>
	<tbody>
		<?php
		$count = 0;
		foreach($permissoes as $permissao):
		$count++;
		?>
		<tr>
			<td><?php echo $count; ?></td>
			<td><?php echo $permissao->descricao; ?></td>
			<td><?php echo $permissao->controlador; ?></td>
			<td><?php echo $permissao->acao; ?></td>
			<td><?php echo Html::anchor('permissao/editar/'.$permissao->id, 'Editar'/*, array('class' => 'btn btn-info')*/); ?></td>
			<td><?php echo Html::anchor('permissao/apagar/'.$permissao->id, 'Apagar'/*, array('class' => 'btn btn-danger')*/); ?></td>
		</tr>
		<?php endforeach; ?>
	</tbody>
	</table>